<?php
function API__constell__tread__get($p) {
    //vApi::policy("method=get&login=1");
    $today = getdate();
    define('TOME_TO_NIGHT',mktime(23,59,59,$today['mon'],$today['mday'],$today['year'])-time());
    $uid=vApi::uid();
    $id=vApi::param($p, 'id', NULL);
    $date=vApi::param($p, 'date', date('Ymd',time()));
    if(!$id) vApi::throwException('421101', '参数不能为空');
    $rst=vApi::getBase('dc')->get(array(vApi::getBase('constellation/gather/sina'),'getTread'),array($id,$date),TOME_TO_NIGHT);
    return $rst;
}
?>